package com.crosbymichael.process
{
	/**
	 * Returns the extension that is used in the native installer.
	 *  
	 * @author Michael Crosby crosbymichael.com
	 * 
	 */	
	public class FileExtention
	{
		public function FileExtention()
		{
		}
		
		/**
		 * Input the os and the correct native installer extension will be returned.
		 * If os is invalid, nothing is returned.
		 *  
		 * @param os OS that the app is packaging on.
		 * 
		 * @return Native Installer extension for input OS. Nothing is returned if os is invalid.
		 * 
		 * 
		 */		
		public static function extension(os:String):String {
			switch(os)
			{
				case "win":
				{
					return "exe";	
					break;
				}
				case "mac": {
					return "dmg";
					break;
				}
				case "rpm": {
					return "rpm";
					break;
				}
				case "deb": {
					return "deb";
					break;
				}
				default:
				{
					return "";
					break;
				}
			}
		}
	}
}